package twodudesdev.amerikick.learnkaratema;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class Video extends Activity implements OnClickListener{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.video);
		
		/** Logo Image */
        ImageView imageView1 = (ImageView)findViewById(R.id.imageView1);
        imageView1.setImageResource(R.drawable.videopic);
        
        View videoButton = findViewById(R.id.button1);
        videoButton.setOnClickListener(this);
    }
        
        public void onClick(View v) {
        	switch (v.getId()) {
        	case R.id.button1:
        		//Intent i = new Intent(this, VidButton1.class);
        		Intent i = (new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=nLjCF1_DC0o")));
        		startActivity(i);
        		break;

    }
  }
}
